{template 'web/common/common'}
{template 'web/home/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            首页分类信息
        </h3>
    </div>

    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/home',array('m'=>'kundian_farm','op'=>'type_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label class="col-sm-2 control-label">分类名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="type_name" id="type_name" value="{$list['type_name']}">
                    <input type="hidden" name="id" value="{$list['id']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">图片（60*60）</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('icon',$list['icon']);}
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">链接地址1</label>
                <div class="col-sm-8">
                    <select name="url" class="form-control">
                        <option value="">请选择</option>
                        <option value="shop/Adopt/index" <?php if($list['url']=='shop/Adopt/index'){echo 'selected';} ?> >家畜领养</option>
                        <option value="shop/integral/index/index" <?php if($list['url']=='shop/integral/index/index'){echo 'selected';} ?> >农场签到</option>
                        <option value="user/land/selectionLands/index" <?php if($list['url']=='user/land/selectionLands/index'){echo 'selected';} ?> >农田选租 </option>
                        <option value="HomePage/live/index" <?php if($list['url']=='HomePage/live/index'){echo 'selected';} ?> >农场监控</option>
                        <option value="shop/integral/exchange/index" <?php if($list['url']=='shop/integral/exchange/index'){echo 'selected';} ?> >积分商城 </option>
                        <option value="shop/Group/index/index" <?php if($list['url']=='shop/Group/index/index'){echo 'selected';} ?> >组团商城 </option>
                        <option value="HomePage/about/index" <?php if($list['url']=='HomePage/about/index'){echo 'selected';} ?> >关于我们 </option>
                        <option value="user/coupon/index/index" <?php if($list['url']=='user/coupon/index/index'){echo 'selected';} ?> >领券中心 </option>
                        <option value="user/addCard/index" <?php if($list['url']=='user/addCard/index'){echo 'selected';} ?> >兑换卡 </option>
                        <option value="shop/index/index" <?php if($list['url']=='shop/index/index'){echo 'selected';} ?> >普通商城 </option>
                        <option value="shop/VeterinaryIntroduce/index" <?php if($list['url']=='shop/VeterinaryIntroduce/index'){echo 'selected';} ?> >团队管理 </option>
                        <option value="article/index/index" <?php if($list['url']=='article/index/index'){echo 'selected';} ?> >资讯列表 </option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">状态</label>
                <div class="col-sm-8">
                    {if $list['status']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="status">
                    {else}
                    <input type="checkbox" class="js-switch" name="status" value="1">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">排序</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="rank" value="{$list['rank']}">
                </div>
            </div>

            <div class="form-group">

                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit" name="submit" class="btn btn-default">
                    <!--<a class="btn btn-default" href="{url 'site/entry/system',array('m'=>'kundian_farm')}">返回</a>-->
                </div>
            </div>
        </form>
    </div>
</div>
